home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Release Notes / Known Problems - OS < prev    next >
Encoding:
Text File  |  1996-09-18  |  9.1 KB  |  132 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                          
  5. Known Problems - OS Layer
  6. ODF Release 2                                                                                                                                                                  
  7.  
  8. The following is a list of the known problems in this release of ODF.  This includes the Radar Bug Tracking number, 
  9. the bug title, details of the problem, and, in some cases,  a workaround.
  10.  
  11.                                                                                                                                                                                          
  12. 1311027
  13. ODF and Threads/Offscreen bitmaps
  14.  
  15. I am writing an ODF based part that uses an offscreen bitmap that is drawn using threads. I seem to be having a problem with graphic contexts with the multiple threads. Explain how I can have graphic contexts safely in a threaded environment.
  16.  
  17. You can only create and use a graphic context and use it for a short amount of time. You can't yield while you have one active; you must exit the scope of your context before yielding.
  18.                                                                                                                                                                                          
  19. 1339399, 1339400
  20. FW_CBitmap::ChangeBitmap parameters
  21.  
  22. FW_CBitmap::ChangeBitmap should have a palette parameter.
  23. The bScale parameter with an image is not necessary.
  24.                                                                                                                                                                                          
  25. 1342662
  26. Holding down Cmd-z undoes once, but menu flashes repeatedly
  27.  
  28. The menu bar flashes repeatedly as if Undo was chosen many times, but Undo is performed only once.
  29.                                                                                                                                                                                          
  30. 1352622
  31. Casting problem in FW_CAcquiredODxxxx with STL
  32.  
  33. ODFContainer's Content.cpp won't compile in CW8 if any of the CW8
  34. STL header files are included.  This makes it difficult to use STL containers
  35. as part of the content model for an embedding part, since PartMaker uses
  36. ODFContainer as the template for embedding parts.
  37.  
  38. The problem is in the following lines in CBaseContent::RedrawProxies():
  39.  
  40.     FW_CAcquiredODShape updateShape = CalcUpdateShape(ev);
  41.     if (updateShape != NULL)
  42.  
  43. The template class that defines FW_CAcquiredODShape,
  44. FW_TAcquiredODRefCntObject, declares two operator!=() functions, neither of
  45. which handles a void* operand automatically.  When an STL header file is
  46. included, the compiler tries to bind the comparison to STL's global
  47. operator!=() defined in STL's <function.h>, which generates a compiler error
  48. about incompatible operands. 
  49.  
  50. The local fix is to replace the comparison with
  51.  
  52.     if (updateShape != (ODShape*) NULL)
  53.  
  54. or, for those who prefer the newer cast style
  55.  
  56.     if (updateShape != static_cast<ODShape*>(NULL))
  57.  
  58. This matches one of the operator!=() defined by
  59. FW_TAcquiredODRefCntObject<ODShape>, which forces the compiler to select the
  60. correct operator!=(), and everything compiles.
  61.                                                                                                                                                                                          
  62. 1353968
  63. Mac and Windows inconsistent about use of dash style vs. pattern
  64.  
  65. When ODF renders a geometric shape, it uses different logic on Windows and the Mac to decide whether to use the ink's dash style or its pattern.
  66.  
  67. - On the Mac, the dash style is used if the pen size is 1 pixel, otherwise the pattern is used.
  68. - On Windows, the dash style is used (regardless of the pen size) unless the dash style is solid line; in that case, the pattern is used.
  69.                                                                                                                                                                                          
  70. 1365702
  71. Text rendering in offscreen bitmap crashes
  72.  
  73. When I try to render a piece of text into an offscreen bitmap context, and
  74. part of the text is outside the bounds of the context, my part crashes. If
  75. I check for "contextBounds.Contains(textBounds)" before trying to render,
  76. I don't get a crash.
  77.  
  78. There is misbehavior if the context is smaller than a single character. This is a Quickdraw bug when drawing text offscreen. The workaround is to check if the context boundary contains the text before drawing it.
  79.                                                                                                                                                                                          
  80. 1366257
  81. FW_OFile::GetFileHandle should not return a pointer
  82.  
  83. FW_OFile::GetFileHandle returns a pointer to an FW_PlatformFileHandle. It should just return the FW_PlatformHandle, not a pointer. (This method can't be changed now, or it will break compatibility.)
  84.                                                                                                                                                                                          
  85. 1367091
  86. FW_CBitmap::GetColor doesn't return the right color on 68K
  87.                                                                                                                                                                                          
  88. 1369783
  89. FW_CTextBoxShape and italic
  90.  
  91. When I have a large font italicized and right-justified, the FW_CTextBoxShape tends to cut off some of the last letter.
  92.                                                                                                                                                                                          
  93. 1371233
  94. FW_CPattern needs FW_BitPattern accessor
  95.  
  96. After creating a FW_CPattern to represent my bit pattern, I cannot get the bit pattern back 
  97. from the object in order to store it somewhere else. This means that I have to keep around my 
  98. own bit pattern representation of all the FW_CPatterns I'm using.
  99.                                                                                                                                                                                          
  100. 1375538
  101. FW_CGraphicContextGX is slow the first time
  102.  
  103. The ODF FW_CGraphicContextGX class constructor is *very* slow the first time the class is 
  104. instantiated. There is a perceptible delay before the first GX shape is drawn. The delay seems to occur 
  105. only the first time after a reboot.
  106.  
  107. The first time GX is actually used, it "really" initializes.  I guess this is to speed up load times when it is customary to EnterGraphics and InitPrinting at launch. The workaround is to create a FW_CGraphicContextGX early in the part's lifetime so that this delay is associated with launch rather than sluggish drawing.
  108.                                                                                                                                                                                          
  109. 1377599
  110. Resources are still loaded in the application heap in FW_PResourceFile::GetResourceHandle.
  111.                                                                                                                                                                                          
  112. 1378789
  113. Menu id assignment has builtin limit
  114.  
  115. When menus are first created, they are assigned a menu id of 255, which is the unattached value. When a menu is attached 
  116. to the menu bar it is assigned the next unused menu id. The variable fNextMenuID contains the next unused menu id, and 
  117. it is simply incremented on each assignement. If fNextMenuID reaches 255 no more menu ids can be assigned. A part that
  118. does a lot of attaching and detaching of menus could hit this limit.
  119.                                                                                                                                                                                          
  120. 1382638
  121. Window refcon conflict
  122.  
  123. When ODF goes to add a facet it checks and uses the window's refcon.  The refcon is used for determining the existence of shareable windows.  Frameworks like PowerPlant use the window's refcon to keep track of their windows. The problem is that, in the application container world, facets are added to windows created by the application. ODF needs to be modified to not depend on refcons of windows it does not create.
  124.                                                                                                                                                                                          
  125. 1384628
  126. MenuBar::GetItemString locale info is not usable for comparing strings
  127.  
  128. This is actually an OpenDoc bug. The string returned from GetItemString has the following locale: (-1, 0) for System script,
  129. and (script, 0) for other scripts. The language code is always 0. The effect of this bug is that if you get a string from a menu
  130. and compare it with another string, they won't match because the locales are different. This is particularly a problem with
  131. Font menus containing font names in other scripts.
  132.